<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var a = 1;
        judge(a);

        var a1 = new Number(2);
        judge(a1);

        var b = null;
        judge(b);

        var c = function () { }
        judge(c);
        console.log("------------------------------------------")

        var d = Boolean();
        judge(d);

        var d1 = new Boolean();
        judge(d1);

        var e = String();
        judge(e);
        console.log("------------------------------------------")

        var e1 = new String();
        judge(e1);

        var f = new Date()
        judge(f);

        var g = new RegExp()
        judge(g);

        function judge(params) {
            console.log(Object.prototype.toString.call(params))
        }
    </script>
</body>

</html>